package com.ag.zhh.action;

import java.util.Date;
import com.ag.zhh.service.ContactLogService;
/*访问路径：/ag/do/ContactLog_addPhoneContactLog
 * 		   /ag/do/ContactLog_addMessageContactLog
 * 		   /ag/do/ContactLog_addFaxContactLog
 * */
public class ContactLogAction {

	private	ContactLogService contactLogService;
	private Date ctBeginTime;		//通讯开始时间
	private Date ctFinishTime;		//结束时间
	private String ctCaller;		//通讯发起人
	private String ctCalled;		//通讯接收人
	private String ctAudioUrl;		//录音文件url
	private String ctSmsContent;	//短信内容
	private String ctFaxFile;		//传真文件名
	private String ctCalledNumber;  //通讯接收人号码
	private String ctCalledUId;     //通讯接收人用户ID
	private String result;
	
	//增加电话通讯日志
	public String addPhoneContactLog()
	{
		contactLogService.addPhoneContactLog(ctBeginTime, ctFinishTime, ctCaller, ctCalled, ctAudioUrl);
		result = "增加了电话通讯日志";
		return "success";
	}
	//增加短信通信方式
	public String addMessageContactLog()
	{
		contactLogService.addMessageContactLog(ctCaller, ctCalled, ctCalledNumber,ctSmsContent);
		result = "增加了短信通讯日志";
		return "success";
	}
	//增加传真通讯方式
	public String addFaxContactLog()
	{
		contactLogService.addFaxContactLog(ctBeginTime, ctFinishTime, ctCaller, ctCalled, ctFaxFile);
		result = "增加了传真通讯日志";
		return "success";
	}
	public String execute()
	{
		return "success";
	}
	public ContactLogService getContactLogService() {
		return contactLogService;
	}
	public void setContactLogService(ContactLogService contactLogService) {
		this.contactLogService = contactLogService;
	}
	public Date getCtBeginTime() {
		return ctBeginTime;
	}
	public void setCtBeginTime(Date ctBeginTime) {
		this.ctBeginTime = ctBeginTime;
	}
	public Date getCtFinishTime() {
		return ctFinishTime;
	}
	public void setCtFinishTime(Date ctFinishTime) {
		this.ctFinishTime = ctFinishTime;
	}
	public String getCtCaller() {
		return ctCaller;
	}
	public void setCtCaller(String ctCaller) {
		this.ctCaller = ctCaller;
	}
	public String getCtCalled() {
		return ctCalled;
	}
	public void setCtCalled(String ctCalled) {
		this.ctCalled = ctCalled;
	}
	public String getCtAudioUrl() {
		return ctAudioUrl;
	}
	public void setCtAudioUrl(String ctAudioUrl) {
		this.ctAudioUrl = ctAudioUrl;
	}
	public String getCtSmsContent() {
		return ctSmsContent;
	}
	public void setCtSmsContent(String ctSmsContent) {
		this.ctSmsContent = ctSmsContent;
	}
	public String getCtFaxFile() {
		return ctFaxFile;
	}
	public void setCtFaxFile(String ctFaxFile) {
		this.ctFaxFile = ctFaxFile;
	}
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public String getCtCalledNumber() {
		return ctCalledNumber;
	}
	public void setCtCalledNumber(String ctCalledNumber) {
		this.ctCalledNumber = ctCalledNumber;
	}
	public String getCtCalledUId() {
		return ctCalledUId;
	}
	public void setCtCalledUId(String ctCalledUId) {
		this.ctCalledUId = ctCalledUId;
	}

}
